package com.wu.service.impl;

import com.wu.pojo.vo.BoardcastVo;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import com.wu.mappers.BoardcastMapper;
import com.wu.pojo.Boardcast;
import com.wu.service.BoardcastService;

import java.util.List;

/**
@author sun
@date 2022/3/21 - 0:17
*/
@Service
public class BoardcastServiceImpl implements BoardcastService{

    @Resource
    private BoardcastMapper boardcastMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return boardcastMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(Boardcast record) {
        return boardcastMapper.insert(record);
    }

    @Override
    public int insertSelective(Boardcast record) {
        return boardcastMapper.insertSelective(record);
    }

    @Override
    public Boardcast selectByPrimaryKey(Integer id) {
        return boardcastMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(Boardcast record) {
        return boardcastMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(Boardcast record) {
        return boardcastMapper.updateByPrimaryKey(record);
    }

    @Override
    public List<BoardcastVo> findBoardcastVo(Boardcast boardcast) {
        return boardcastMapper.findBoardcastVo(boardcast);
    }

}
